package com.start.form.engine.core.model;

import com.alibaba.fastjson2.JSONObject;
import com.start.form.engine.core.entity.StartFormConfig;
import lombok.Data;

import java.util.List;

@Data
public class StartFormConfigModel extends StartFormConfig {
    private List<StartFormColumnModel> columns;

    public static StartFormConfigModel createModel(StartFormConfig formConfig) {
        return JSONObject.parseObject(JSONObject.toJSONString(formConfig), StartFormConfigModel.class);
    }
}
